package io.github.veigara.tcp.framework.factory;

import io.github.veigara.tcp.framework.model.DeviceConnection;
import io.github.veigara.tcp.framework.protocol.ProtocolHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author : zhouhx
 * 默认协议处理器
 * @date : 2025/6/6 14:08
 */
public class DefaultProtocolHandler implements ProtocolHandler {
    private static final Logger logger = LoggerFactory.getLogger(DefaultProtocolHandler.class);
    private DeviceConnection deviceConnection;

    public DefaultProtocolHandler(DeviceConnection deviceConnection) {
        this.deviceConnection = deviceConnection;
    }

    @Override
    public void handleMessage(Object message) {

    }

    @Override
    public void setDeviceConnection(DeviceConnection connection) {

    }

    @Override
    public DeviceConnection getDeviceConnection() {
        return null;
    }

    @Override
    public void sendMessage(Object message) {

    }

    @Override
    public void disconnect() {

    }
}
